package website.digitalocean.chapter8;

import cn.hutool.core.text.StrFormatter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/10 14:00
 * @version: 1.0
 */
@Slf4j
public class Circle implements Shape {
    private String color;
    private int x;
    private int y;
    private int radius;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public void draw() {
        String format = StrFormatter.format("color:{}; x:{}; y:{}; radius:{}", color, x, y, radius);
        log.info("s:{}", format);
    }
}
